package com.zyw.zhuangdian.enums;

public enum MsgCode {
    MSG_SUCCESS("0000","OK"),
    MSG_ERROR("9999","内部异常"),

    MSG_UN_AUTH("9401","未登录"),
    MSG_NOT_FOUND("9404","资源不存在"),

    MSG_USER_EXISTED("9501","用户已存在"),
    MSG_INCORRECT_PASSWORD("9502","密码错误"),
    MSG_USER_NOT_EXIST("9503","用户不存在"),
    MSG_INCORRECT_VERIFY_CODE("9504","验证码错误"),

    MSG_ILLEGAL_ARGUMENT("9990","参数错误"),
    MSG_DAO_ERROR("9991","数据处理失败"),

    MSG_ILLEGAL_SUBSCRIBE("9101","不能自己关注自己")
    ;


    private final String code;
    private final String msg;

    MsgCode(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
